﻿using System;
using System.ComponentModel;
using DevExpress.Xpo;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    public class TopOrder : BaseObject
    {
        //begin
        public TopOrder(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _TotalFee;
        [Size(SizeAttribute.Unlimited)]
        public string TotalFee
        {
            get
            {
                return _TotalFee;
            }
            set
            {
                SetPropertyValue("TotalFee", ref _TotalFee, value);
            }
        }
        private string _DiscountFee;
        [Size(SizeAttribute.Unlimited)]
        public string DiscountFee
        {
            get
            {
                return _DiscountFee;
            }
            set
            {
                SetPropertyValue("DiscountFee", ref _DiscountFee, value);
            }
        }
        private string _AdjustFee;
        [Size(SizeAttribute.Unlimited)]
        public string AdjustFee
        {
            get
            {
                return _AdjustFee;
            }
            set
            {
                SetPropertyValue("AdjustFee", ref _AdjustFee, value);
            }
        }
        private string _Payment;
        [Size(SizeAttribute.Unlimited)]
        public string Payment
        {
            get
            {
                return _Payment;
            }
            set
            {
                SetPropertyValue("Payment", ref _Payment, value);
            }
        }
        private DateTime _Modified;
        public DateTime Modified
        {
            get
            {
                return _Modified;
            }
            set
            {
                SetPropertyValue("Modified", ref _Modified, value);
            }
        }
        private string _ItemMealId;
        [Size(SizeAttribute.Unlimited)]
        public string ItemMealId
        {
            get
            {
                return _ItemMealId;
            }
            set
            {
                SetPropertyValue("ItemMealId", ref _ItemMealId, value);
            }
        }
        private string _Status;
        [Size(SizeAttribute.Unlimited)]
        public string Status
        {
            get
            {
                return _Status;
            }
            set
            {
                SetPropertyValue("Status", ref _Status, value);
            }
        }
        private string _RefundId;
        [Size(SizeAttribute.Unlimited)]
        public string RefundId
        {
            get
            {
                return _RefundId;
            }
            set
            {
                SetPropertyValue("RefundId", ref _RefundId, value);
            }
        }
        private string _Iid;
        [Size(SizeAttribute.Unlimited)]
        public string Iid
        {
            get
            {
                return _Iid;
            }
            set
            {
                SetPropertyValue("Iid", ref _Iid, value);
            }
        }
        private string _SkuId;
        [Size(SizeAttribute.Unlimited)]
        public string SkuId
        {
            get
            {
                return _SkuId;
            }
            set
            {
                SetPropertyValue("SkuId", ref _SkuId, value);
            }
        }
        private string _SkuPropertiesName;
        [Size(SizeAttribute.Unlimited)]
        public string SkuPropertiesName
        {
            get
            {
                return _SkuPropertiesName;
            }
            set
            {
                SetPropertyValue("SkuPropertiesName", ref _SkuPropertiesName, value);
            }
        }
        private string _ItemMealName;
        [Size(SizeAttribute.Unlimited)]
        public string ItemMealName
        {
            get
            {
                return _ItemMealName;
            }
            set
            {
                SetPropertyValue("ItemMealName", ref _ItemMealName, value);
            }
        }
        private long _Num;
        public long Num
        {
            get
            {
                return _Num;
            }
            set
            {
                SetPropertyValue("Num", ref _Num, value);
            }
        }
        private string _Title;
        [Size(SizeAttribute.Unlimited)]
        public string Title
        {
            get
            {
                return _Title;
            }
            set
            {
                SetPropertyValue("Title", ref _Title, value);
            }
        }
        private string _Price;
        [Size(SizeAttribute.Unlimited)]
        public string Price
        {
            get
            {
                return _Price;
            }
            set
            {
                SetPropertyValue("Price", ref _Price, value);
            }
        }
        private string _PicPath;
        [Size(SizeAttribute.Unlimited)]
        public string PicPath
        {
            get
            {
                return _PicPath;
            }
            set
            {
                SetPropertyValue("PicPath", ref _PicPath, value);
            }
        }
        private string _SellerNick;
        [Size(SizeAttribute.Unlimited)]
        public string SellerNick
        {
            get
            {
                return _SellerNick;
            }
            set
            {
                SetPropertyValue("SellerNick", ref _SellerNick, value);
            }
        }
        private string _BuyerNick;
        [Size(SizeAttribute.Unlimited)]
        public string BuyerNick
        {
            get
            {
                return _BuyerNick;
            }
            set
            {
                SetPropertyValue("BuyerNick", ref _BuyerNick, value);
            }
        }
        private string _RefundStatus;
        [Size(SizeAttribute.Unlimited)]
        public string RefundStatus
        {
            get
            {
                return _RefundStatus;
            }
            set
            {
                SetPropertyValue("RefundStatus", ref _RefundStatus, value);
            }
        }
        private string _TopOid;
        [Size(SizeAttribute.Unlimited)]
        public string TopOid
        {
            get
            {
                return _TopOid;
            }
            set
            {
                SetPropertyValue("TopOid", ref _TopOid, value);
            }
        }
        private string _OuterIid;
        [Size(SizeAttribute.Unlimited)]
        public string OuterIid
        {
            get
            {
                return _OuterIid;
            }
            set
            {
                SetPropertyValue("OuterIid", ref _OuterIid, value);
            }
        }
        private string _OuterSkuId;
        [Size(SizeAttribute.Unlimited)]
        public string OuterSkuId
        {
            get
            {
                return _OuterSkuId;
            }
            set
            {
                SetPropertyValue("OuterSkuId", ref _OuterSkuId, value);
            }
        }
        private string _SnapshotUrl;
        [Size(SizeAttribute.Unlimited)]
        public string SnapshotUrl
        {
            get
            {
                return _SnapshotUrl;
            }
            set
            {
                SetPropertyValue("SnapshotUrl", ref _SnapshotUrl, value);
            }
        }
        private string _Snapshot;
        [Size(SizeAttribute.Unlimited)]
        public string Snapshot
        {
            get
            {
                return _Snapshot;
            }
            set
            {
                SetPropertyValue("Snapshot", ref _Snapshot, value);
            }
        }
        private DateTime _TimeoutActionTime;
        public DateTime TimeoutActionTime
        {
            get
            {
                return _TimeoutActionTime;
            }
            set
            {
                SetPropertyValue("TimeoutActionTime", ref _TimeoutActionTime, value);
            }
        }
        private bool _BuyerRate;
        public bool BuyerRate
        {
            get
            {
                return _BuyerRate;
            }
            set
            {
                SetPropertyValue("BuyerRate", ref _BuyerRate, value);
            }
        }
        private bool _SellerRate;
        public bool SellerRate
        {
            get
            {
                return _SellerRate;
            }
            set
            {
                SetPropertyValue("SellerRate", ref _SellerRate, value);
            }
        }
        private string _SellerType;
        [Size(SizeAttribute.Unlimited)]
        public string SellerType
        {
            get
            {
                return _SellerType;
            }
            set
            {
                SetPropertyValue("SellerType", ref _SellerType, value);
            }
        }
        private string _NumIid;
        [Size(SizeAttribute.Unlimited)]
        public string NumIid
        {
            get
            {
                return _NumIid;
            }
            set
            {
                SetPropertyValue("NumIid", ref _NumIid, value);
            }
        }
        private string _Cid;
        [Size(SizeAttribute.Unlimited)]
        public string Cid
        {
            get
            {
                return _Cid;
            }
            set
            {
                SetPropertyValue("Cid", ref _Cid, value);
            }
        }
        private bool _IsOversold;
        public bool IsOversold
        {
            get
            {
                return _IsOversold;
            }
            set
            {
                SetPropertyValue("IsOversold", ref _IsOversold, value);
            }
        }
        private TopTrade _Trade;
        [Association("TradeOrders", typeof(TopTrade))]
        public TopTrade Trade
        {
            get
            {
                return _Trade;
            }
            set
            {
                SetPropertyValue("Trade", ref _Trade, value);
            }
        }
        //end

    }
}
